timeline = {
    "data":{
       "task_num": 20,
       "operator_number": 33,
       "stage_num": 18,
       "stage_start_op_list": [0,4,6,10,12,14,18,22,24,26,28,30,44,54,56,60,62,64],
       "hot_spot_op_num": 6,
       "hot_spot_op_list": [0,3,9,10,23,24],
       "straggler_op_num": 22,
       "straggler_op_location_list": [[8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [4, 3], [5, 3], [6, 3], [7, 3], [8, 9], [9, 9], [10, 9], [11, 9], [12, 9], [13, 9], [14, 9], [15, 9], [12, 24], [15, 24]],
       "op_list": [
           [20, 1, 206, 69, 0, 160, 747, 162, 7, 27, 1763, 2, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 94, 1196, 198, 4, 2, 5, 1, 196, 2, 0, 209], 
           [20, 1, 206, 79, 1, 66, 770, 67, 1, 38, 1788, 3, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 90, 1196, 193, 11, 5, 8, 7, 190, 2, 0, 210], 
           [31, 1, 206, 126, 1, 152, 726, 164, 9, 35, 1749, 2, 3, 1, 4, 0, 0, 0, 0, 0, 0, 0, 94, 1196, 196, 4, 6, 8, 1, 196, 3, 0, 209], 
           [13, 0, 206, 82, 2, 191, 138, 191, 1, 34, 1695, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 100, 1195, 197, 2, 3, 414, 1, 194, 3, 0, 209], 
           [37, 1, 214, 2235, 39, 105, 650, 105, 1, 39, 1620, 7, 2, 12, 3, 0, 0, 0, 0, 0, 0, 0, 93, 1122, 322, 10, 3, 438, 1, 188, 14, 0, 217], 
           [44, 2, 210, 2239, 45, 100, 147, 102, 1, 48, 1808, 1, 2, 6, 2, 0, 0, 0, 0, 0, 0, 0, 88, 1120, 323, 12, 5, 452, 5, 188, 7, 0, 214], 
           [44, 1, 197, 2238, 40, 134, 219, 134, 0, 50, 1610, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 80, 1122, 326, 19, 3, 7, 5, 186, 1, 0, 202], 
           [32, 13, 204, 2257, 26, 70, 209, 71, 0, 46, 1840, 5, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 89, 1123, 320, 11, 5, 11, 7, 181, 1, 0, 209], 
           [2712, 16, 187, 0, 0, 0, 0, 0, 0, 2759, 2127, 1, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 81, 1164, 266, 16, 1, 116, 7, 168, 3, 0, 193], 
           [2710, 11, 186, 0, 0, 0, 0, 0, 0, 2739, 2148, 1, 3, 2, 5, 0, 0, 0, 0, 0, 0, 0, 84, 1163, 256, 16, 8, 118, 2, 172, 4, 0, 189], 
           [2719, 28,  183, 0, 0, 0, 0, 0, 0, 2759, 2188, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 90, 1162, 256, 14, 6, 112, 2, 169, 2, 0, 198], 
           [2748, 3, 186, 0, 0, 0, 0, 0, 0, 2753, 2133, 3, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 97, 1162, 255, 12, 3, 385, 5, 169, 9, 0, 201], 
           [2614, 1, 212, 0, 0, 0, 0, 0, 0, 2645, 1880, 3, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 106, 1178, 333, 8, 6, 409, 2, 199, 2, 0, 216], 
           [2637, 8, 207, 0, 0, 0, 0, 0, 0, 2648, 1982, 3, 5, 1, 6, 0, 0, 0, 0, 0, 0, 0, 114, 1177, 332, 9, 2, 416, 2, 192, 1, 0, 214], 
           [2611, 7, 211, 0, 0, 0, 0, 0, 0, 2654, 1985, 1, 1, 0, 7, 0, 0, 0, 0, 0, 0, 0, 110, 1178, 332, 10, 4, 409, 1, 193, 1, 0, 213], 
           [2612, 9, 210, 0, 0, 0, 0, 0, 0, 2643, 1882, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 102, 1179, 336, 12, 7, 410, 2, 194, 4, 0, 214], 
           [32, 3, 227, 65, 0, 98, 188, 109, 9, 42, 1815, 2, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 4, 56, 169, 3, 2, 226, 2, 214, 3, 0, 230], 
           [65, 3, 226, 53, 2, 93, 199, 94, 0, 69, 1687, 2, 2, 1, 8, 0, 0, 0, 0, 0, 0, 0, 8, 51, 170, 3, 3, 6, 2, 214, 2, 0, 229],  
           [65, 1, 220, 52, 1, 124, 194, 129, 2, 68, 1782, 3, 6, 1, 7, 0, 0, 0, 0, 0, 0, 0, 7, 50, 170, 5, 3, 11, 7, 202, 2, 0, 221], 
           [55, 1, 219, 43, 0, 88, 156, 88, 1, 65, 1880, 2, 1, 0, 1, 0, 0, 0, 0, 449, 1115, 39, 1, 55, 171, 4, 4, 5, 3, 205, 1, 0, 221]
        ],
        "op_name_list": {0: 'HadoopRDD', 1: 'MapPartitionsRDD', 2: 'MapPartitionsRDD', 3: 'MapPartitionsRDD', 4: 'MapPartitionsRDD', 5: 'ShuffledRDD', 6: 'MapPartitionsRDD', 7: 'ZippedWithIndexRDD', 8: 'MapPartitionsRDD', 9: 'MapPartitionsRDD', 10: 'MapPartitionsRDD', 11: 'MapPartitionsRDD', 12: 'MapPartitionsRDD', 13: 'MapPartitionsRDD', 14: 'MapPartitionsRDD', 22: 'MapPartitionsRDD', 23: 'MapPartitionsRDD', 24: 'MapPartitionsRDD', 25: 'MapPartitionsRDD', 26: 'MapPartitionsRDD', 27: 'ShuffledRDD', 28: 'MapPartitionsRDD', 29: 'MapPartitionsRDD', 30: 'MapPartitionsRDD', 31: 'ZippedPartitionsRDD2', 32: 'MapPartitionsRDD', 19: 'MapPartitionsRDD', 20: 'MapPartitionsRDD', 21: 'MapPartitionsRDD'}
    }
}

straggler = {
    "data":{
        "straggler_type":[
            {
                "task_number": 1,
                "feature_number": 1,
                "urgent_level": 1,
                "feature":[[2, 0.191]]
            },
            {
                "task_number": 24,
                "feature_number": 2,
                "urgent_level": 1,
                "feature":[[2, 0.191], [1, 0.148]]
            },
            {
                "task_number": 5,
                "feature_number": 3,
                "urgent_level": 1,
                "feature":[[2, 0.191], [17, 0.1465], [7, 0.1004]]
            },
            {
                "task_number": 9,
                "feature_number": 2,
                "urgent_level": 1,
                "feature":[[2, 0.191], [4, 0.195]]
            }
        ]
    }
} 

cart_tree = {
    "name": "node 0",
    "label": [
        "executor_run_ime <= 0.511",
        "gini = 0.264",
        "samples = 256",
        "value = [216, 40]"
    ],
    "childs": [
        {
            "name": "node 1",
            "label": [
                "io <= 5.0",
                "gini = 0.133",
                "samples = 42",
                "value = [3, 39]"
            ],
            "childs":[
                {
                    "name": "node 2",
                    "label": [
                        "gini = 0.0",
                        "samples = 39",
                        "value = [0, 39]"
                    ]
                },
                {
                    "name": "node 3",
                    "label": [
                        "gini = 0.0",
                        "samples = 3",
                        "value = [3, 0]"
                    ]                    
                }
            ]
        },
        {
            "name": "node 4",
            "label": [
                "executor_run_ime <= 0.546",
                "gini = 0.009",
                "samples = 214",
                "value = [213, 1]"
            ],
            "childs": [
                {
                    "name": "node 5",
                    "label": [
                        "deserialize <= 0.137",
                        "gini = 0.444",
                        "samples = 3",
                        "value = [2, 1]"
                    ],
                    "childs":[
                        {
                            "name": "node 6",
                            "label": [
                                "gini = 0.0",
                                "samples = 1",
                                "value = [0, 1]"
                            ]
                        },
                        {
                            "name": "node 7",
                            "label": [
                                "gini = 0.0",
                                "samples = 2",
                                "value = [2, 0]"
                            ]                    
                        }
                    ]
                },
                {
                    "name": "node 8",
                    "label": [
                        "gini = 0.0",
                        "samples = 211",
                        "value = [211, 0]",
                    ]
                }
            ]
        }
    ]    
}